package com.lyhlmj.oop_client.Style.Buttons;

import com.lyhlmj.oop_client.Utils.GetScreenSize;

import javax.swing.*;
import java.awt.*;

public class GeneralButton extends JButton{
    public GeneralButton(String str){
        super(str);

        //  得到Frame的大小
        int width = GetScreenSize.getFitSize()[0];
        int height = GetScreenSize.getFitSize()[1];

        this.setPreferredSize(new Dimension((int)(0.1 * width),(int)(0.03 * width)));
        this.setBackground(Color.WHITE);
        this.setFont(new java.awt.Font("隶书",  1,  36));
    }
}
